package serova.valeriya.electricity;
import java.util.ResourceBundle;
import java.util.Enumeration;
public class TextMessages {	
	private static ResourceBundle res;
	public static String getMessage(String key){
		res = ResourceBundle.getBundle("brand/data", new UTF8Control());
			// res = Utf8ResourceBundle.getBundle("brand/data");		
			 for (Enumeration e = res.getKeys(); e.hasMoreElements();) {
			        System.out.println(e.nextElement());
			}
			 return res.getString(key);	 
	}
}